/**
 * 这个模块以后可以用命令工具，自动注册
 * @author yangxiao
 * @module app/schedule/module-register
 */
import * as getClass from '../../util/get-class';
import * as schedule from '../../lib/schedule/schedule';

export let _ls:any[]=[];


export let taskList = {
    login:"login/user-login",
    xxxx:"xxxx/xxxx",
};

export function register(){

    let outFile = schedule.readFile();
    for(let key in taskList){
        if(outFile.indexOf(taskList[key])===-1){ //判断任务是否已经执行过
            let moduled = getClass.getModule(taskList.login,__dirname);
            if(moduled==null){
                continue;
            }else if(moduled.date.day){
                console.error("schedule,redister,",taskList.login,"xxxx = null");
                continue;
            }else if(moduled.data.m)
            
        }         
    }
    
}
